export function getStrapiMedia(url) {
  let server = process.env.jikeid;
  // Check if URL is a local path
  if (url.startsWith("/")) {
    // Prepend Strapi address
    // process.env.strapiBaseUri = "http://www.jike-vision.com";

    if (process.env.jikeid) {
      return `${server}${url}`;
    } else {
      return `${server}${url}`;
    }

    // return `${process.env.strapiBaseUri}${url}`;
  }

  // Otherwise return full URL
  return url;
}
